package com.zto.sch.cycle;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.PostConstruct;

/**
 * @program: javatest
 * @description:
 * @author: sch
 * @create: 2020-11-18 20:24
 **/
@Service
public class B {
    @Autowired
    private A a;

    public B() {
        System.out.println("B实例化");
    }

    @PostConstruct
    public void postConstruct(){
        System.out.println("B   @PostConstruct...");
    }
    public void test(){
        System.out.println("A test method...");
    }

}
